package com.an.testlist;

import java.util.ArrayList;
import java.util.List;

public class TestFore {

	public static void main(String[] args) {
		List<String> list = new ArrayList<String>();
		list.add("123");
		list.add("456");
		list.add("789");

		for (String str : list) {
			if (!str.equals("456")) {
				System.out.println("str:" + str);
				continue;
			}
			System.out.println(str + " ==== " + "a");
			/*
			 * // /*if (str.equals("123")) { // System.out.println("str:" + str); //
			 * continue; // }
			 */		}
		System.out.println(list);
	}
}
